package com.io;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class HomeWork_2 {
    public static void main(String[] args) throws IOException {
        String path="D:\\javacode\\javacode\\J2024_11_17\\m.txt";
        BufferedReader bufferedReader = new BufferedReader(new FileReader(path));
        int readlen=0;
        char []buf=new char[10];
        while((readlen=bufferedReader.read(buf))!=-1){
            System.out.println(buf);
        }
        bufferedReader.close();
    }
}
